<?php

namespace App\Http\Requests\Admin\V1;

class RoleDestroyRequest extends FormRequest
{
    /**
     * @expalin 验证规则
     * @return \string[][]
     * @method
     * @author 陈文小超
     * @maxim from专注to执行
     * @time 2021/3/31/15:54
     */
    public function rules()
    {
        return [
            'id' => ['bail', 'required', 'integer', 'min:1'],
        ];
    }

    /**
     * @expalin 自定义错误
     * @return array
     * @method
     * @author 陈文小超
     * @maxim from专注to执行
     * @time 2021/3/31/15:54
     */
    public function messages()
    {
        return [
            'id.*' => trans('admin/v1/request.role.id'),
        ];
    }
}
